package com.lzh.seatrend.service;

import com.lzh.seatrend.common.Result;

/**
 * @Classname SmsService
 * @Description TODO
 * @Date 2021/11/15 11:35
 * @Created by liuzihao
 */
public interface SmsService {


    /**
     * @Description 短信发送
     * @param phone
     * @return com.lzh.springsecurity.common.Result
     * @date 2021/11/15 11:46
     * @auther liuzihao
     */
    Result sendMessageWithTemplate(String phone);

    /**
     * @Description 将电话和验证码存入redis，同时验证该号码是否存在
     * @param phone 电话号码
     * @param code 验证码
     * @return int
     * @date 2021/11/15 14:16
     * @auther liuzihao
     */
    int saveCodeToRedis(String phone,String code);
}
